package com.hrt.bean;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class OrderStatus {

	
	private static List<Map<String,Object>> orderStatusList;
	public final static Integer ORDER_STATUS_ORDERED=0;
	public final static Integer ORDER_STATUS_PAID=1;
	public final static Integer ORDER_STATUS_SHIPPED=2;
	public final static Integer ORDER_STATUS_RECEIVED=3;
	public final static Integer ORDER_STATUS_CONFIRMED=4;
	public final static Integer ORDER_STATUS_RETURM=5;
	public final static Integer ORDER_STATUS_RETURMED=6;
	public final static Integer ORDER_STATUS_DRAWBACK=7;
	
	public static List<Map<String,Object>> getOrderStatusList() {
		if(orderStatusList==null)
		{
			orderStatusList=new ArrayList<Map<String,Object>>();
			Map<String,Object> map=new HashMap<String,Object>();
			map.put("sta_key", ORDER_STATUS_ORDERED);
			map.put("sta_val", "已下单");
			
			Map<String,Object> map1=new HashMap<String,Object>();
			map1.put("sta_key", ORDER_STATUS_PAID);
			map1.put("sta_val", "已付款");
			
			Map<String,Object> map2=new HashMap<String,Object>();
			map2.put("sta_key", ORDER_STATUS_SHIPPED);
			map2.put("sta_val", "已发货");
			
			Map<String,Object> map3=new HashMap<String,Object>();
			map3.put("sta_key", ORDER_STATUS_RECEIVED);
			map3.put("sta_val", "已收货");
			
			Map<String,Object> map4=new HashMap<String,Object>();
			map4.put("sta_key", ORDER_STATUS_CONFIRMED);
			map4.put("sta_val", "已确认");
			
			Map<String,Object> map5=new HashMap<String,Object>();
			map5.put("sta_key", ORDER_STATUS_RETURM);
			map5.put("sta_val", "申请退货");
			
			Map<String,Object> map6=new HashMap<String,Object>();
			map6.put("sta_key", ORDER_STATUS_RETURMED);
			map6.put("sta_val", "已退货");
			
			Map<String,Object> map7=new HashMap<String,Object>();
			map7.put("sta_key", ORDER_STATUS_DRAWBACK);
			map7.put("sta_val", "已退款");
			orderStatusList.add(map);
			orderStatusList.add(map1);
			orderStatusList.add(map2);
			orderStatusList.add(map3);
			orderStatusList.add(map4);
			orderStatusList.add(map5);
			orderStatusList.add(map6);
			orderStatusList.add(map7);
			
			
		}
		return orderStatusList;
	}
	
	public void setOrderStatusList(List<Map<String,Object>> orderStatusList) {
		this.orderStatusList = orderStatusList;
	}
}
